package com.brainardphotography.blog;

import java.util.Date;

import javax.persistence.Id;

import com.googlecode.objectify.Key;
import com.googlecode.objectify.annotation.Parent;

public class Comment {
	private Key<BlogUser> author;
	private String comment;
	private Date created;

	public Comment() { }

	public Comment(BlogUser author, String comment) {
		this.author = new Key<BlogUser>(BlogUser.class, author.getUserId());
	}

	public Key<BlogUser> getAuthor() {
		return author;
	}

	public void setAuthor(Key<BlogUser> author) {
		this.author = author;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public Date getCreated() {
		return created;
	}

	public void setCreated(Date created) {
		this.created = created;
	}

}
